package com.gateway.springboot.starter.plugin.springcloud;

import com.gateway.plugin.api.context.GatewayContextDecorator;
import com.gateway.plugin.base.handler.ApiDataHandler;
import com.gateway.plugin.springcloud.context.SpringCloudGatewayContextDecorator;
import com.gateway.plugin.springcloud.handler.SpringCloudApiDataHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/2/6 16:00
 **/
@Configuration
public class SpringCloudPluginConfiguration {

    @Bean
    public ApiDataHandler springCloudApiDataHandler() {
        return new SpringCloudApiDataHandler();
    }

    @Bean
    public GatewayContextDecorator springCloudGatewayContextDecorator() {
        return new SpringCloudGatewayContextDecorator();
    }
}
